package org.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @TableName d_staff
 */
@TableName(value ="d_staff_relation")
@Data
@Schema(name = "人员DStaff" ,description = "人员数据对象")
public class DStaff implements Serializable {

    @Schema(description = "人员号")
    @TableId
    private Integer sid;

    @Schema(description = "房间号")
    private String apartmentId;

    @Schema(description = "入宿日期")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date checkInDate;

    @Schema(description = "离宿日期")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date checkOutDate;

    @Schema(description = "入职时间")
    @TableField(exist = false)
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date CheckinDt;

    @Schema(description = "更新时间")
    private Date updateDate;

    @Schema(description = "人员状态（未启用）")
    private Integer staffStatus;

    @Schema(description = "人员同步Id")
    private String staffTepId;

    @Schema(description = "是否删除")
    private Integer isDeleted;

    @Schema(description = "临时员工号")
    private String temEmpNo;

    @Schema(description = "临时员工名")
    private String temEmpName;

    @Schema(description = "临时人员身份证号")
    private String temIdCard;

    @Schema(description = "临时人员电话")
    private String temPhoneNumber;

    @Schema(description = "人员电话")
    @TableField(exist = false)
    private String staffPhoneNumber;

    @Schema(description = "人员类型")
    @TableField(exist = false)
    private String staffType;

    @Schema(description = "人员部门")
    @TableField(exist = false)
    private String staffGroup;

    @Schema(description = "人员身份证号")
    @TableField(exist = false)
    private String staffIdCard;

    @TableField(exist = false)
    private String staffId;
    @TableField(exist = false)
    private String staffName;
    @TableField(exist = false)
    private String staffAddress;
    @TableField(exist = false)
    private Integer staffAge;
    @TableField(exist = false)
    private String staffSex;
    @TableField(exist = false)
    private String empStatus;

    @TableField(exist = false)
    private String buildingId;
    @TableField(exist = false)
    private String apartmentType;

    @TableField(exist = false)
    private Double amountElectric;

    @TableField(exist = false)
    private Double amountHydro;

    @TableField(exist = false)
    private Double Electric;

    @TableField(exist = false)
    private Double Hydro;

    private static final long serialVersionUID = 1L;
}